package com.docted.design.pattern.proxy.dynamic.cglib;

/**
 * @author DoCted
 * @since v1.0 2018/3/11
 */
public class CglibProxyTest {


    public static void main(String[] args) {
        try {
            DoCted doCted = (DoCted) new JobAgent().getInstance(DoCted.class);
            doCted.findJob();
            System.out.println("=====================");
            doCted.rentApartment();

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
